package com.lidong.lowcode.model.storage;

import com.lidong.lowcode.database.annotation.Column;
import com.lidong.lowcode.database.annotation.Table;
import com.lidong.lowcode.database.constants.database.SqlColumnEnum;
import com.lidong.lowcode.database.constants.enumconst.StrCaseEnum;

import java.util.Date;

/**
 * @author LiDong
 * @version 1.0.0
 * @createTime 12/8/2022 9:17 PM
 */
@Table(name = "b_group", tableNameCase = StrCaseEnum.LOWER, comment = "业务分组表")
public class BGroupTable {

    @Column(name = "ID", dataType = SqlColumnEnum.VARCHAR, length = 36, isPrimaryKey = true, notNull = true)
    private String id;

    @Column(name = "GROUP_NAME", dataType = SqlColumnEnum.VARCHAR, length = 100)
    private String groupName;

    @Column(name = "GROUP_CODE", dataType = SqlColumnEnum.VARCHAR, length = 100)
    private String groupCode;

    @Column(name = "PARENT_ID", dataType = SqlColumnEnum.VARCHAR, length = 36)
    private String parentId;

    @Column(name = "USABLE", dataType = SqlColumnEnum.INT, defaultValue = "1")
    private int usable;

    @Column(name = "TYPE", dataType = SqlColumnEnum.VARCHAR, length = 100)
    private String type;

    @Column(name = "RECORD_TIME", dataType = SqlColumnEnum.DATETIME)
    private Date recordTime;

    @Column(name = "RECORDED_ID", dataType = SqlColumnEnum.VARCHAR, length = 50)
    private String recorderId;
}
